﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Bs_Dataset_Class_Manage.aspx.cs"
    Inherits="YX_BASEINFO_BS_DATASET_CLASS_Manage" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .tool-form .x-panel-bwrap .x-panel-tbar .x-toolbar .x-label-value
        {
            color: #15428b;
            font-weight: bold;
            font-size: 11px;
            padding-left: 3px;
        }
        .no-icon
        {
            display: none;
        }
        .ext-el-mask
        {
            -moz-opacity: 0.9;
            opacity: .90;
            filter: alpha(opacity=1);
        }
    </style>

    <script type="text/javascript" src="../JavaScript/Common.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <ext:ResourceManager ID="ResourceManager1" runat="server" AjaxViewStateMode="Enabled"></ext:ResourceManager>
        <ext:Store ID="Store1" runat="server" AutoLoad="true">
            <Reader>
                <ext:JsonReader IDProperty="DATASET_CLASS">
                    <Fields>
                        <ext:RecordField Name="DATASET_CLASS" />
                        <ext:RecordField Name="SUB_SYSTEM" />
                        <ext:RecordField Name="CLASS_NAME" />
                        <ext:RecordField Name="MODIFY_FLAG" />
                        <ext:RecordField Name="ALLOWMODIFY" />
                        <ext:RecordField Name="SUBSYSTEM_NAME" />
                    </Fields>
                </ext:JsonReader>
            </Reader>
        </ext:Store>
        <ext:Store ID="Store2" runat="server" AutoLoad="true">
            <Reader>
                <ext:JsonReader>
                    <Fields>
                        <ext:RecordField Name="SUB_SYSTEM">
                        </ext:RecordField>
                        <ext:RecordField Name="SYSTEM_NAME">
                        </ext:RecordField>
                    </Fields>
                </ext:JsonReader>
            </Reader>
            <SortInfo Direction="ASC"></SortInfo>
        </ext:Store>
        <ext:ViewPort ID="ViewPort1" runat="server">
            <Items>
                <ext:RowLayout ID="RowLayout1" runat="server">
                <Rows>
                    <ext:LayoutRow RowHeight="1">
                        <ext:Panel ID="Panel6" runat="server" Border="false" Cls="tool-form">
                            <Items>
                                <ext:FitLayout ID="FitLayout1" runat="server">
                                <Items>
                                    <ext:GridPanel ID="GridPanel1" runat="server" StoreID="Store1" Border="false">
                                        <ColumnModel ID="ColumnModel1" runat="server">
                                            <Columns>
                                                <ext:RowNumbererColumn Header="序号" Width="35" />
                                                <ext:Column Header="DATASET_CLASS" Hidden="true" DataIndex="DATASET_CLASS">
                                                </ext:Column>
                                                <ext:Column Header="分类名称" DataIndex="CLASS_NAME">
                                                </ext:Column>
                                                <ext:Column Header="所属子系统" DataIndex="SUBSYSTEM_NAME">
                                                </ext:Column>
                                                <ext:Column Header="允许修改" DataIndex="ALLOWMODIFY">
                                                </ext:Column>
                                            </Columns>
                                        </ColumnModel>
                                        <SelectionModel>
                                               <ext:RowSelectionModel ID="RowSelectionModel1" runat="server">
                                                </ext:RowSelectionModel>
                                        </SelectionModel>
                                        <DirectEvents>
                                            <RowClick OnEvent="OnRowClick">
                                                <ExtraParams>
                                                    <ext:Parameter Name="curID" Value="this.store.getAt(rowIndex).data['DATASET_CLASS']"
                                                        Mode="Raw">
                                                    </ext:Parameter>
                                                </ExtraParams>
                                            </RowClick>
                                            
                                        </DirectEvents>
                                        <LoadMask ShowMask="true" Msg="加载中..." />
                                    </ext:GridPanel>
                                    </Items>
                                </ext:FitLayout>
                            </Items>
                            <TopBar>
                                <ext:Toolbar ID="Toolbar1" runat="server" StyleSpec="font-weight:bold;background:transparent url(../images/white-top-bottom.gif) repeat-x scroll 0 -1px">
                                    <Items>
                                        <ext:Label ID="Label1" runat="server" Text="数据集分类列表">
                                        </ext:Label>
                                        <ext:ToolbarFill ID="ToolbarFill1" runat="server">
                                        </ext:ToolbarFill>
                                        
                                        <ext:Button runat="server" ID="extBtn_Add" Text="增加" Icon="Add">
                                            <DirectEvents>
                                                <Click OnEvent="OnBtnAddClick">
                                                </Click>
                                            </DirectEvents>
                                        </ext:Button>
                                        <ext:Button runat="server" ID="extBtn_Change" Text="修改" Icon="ApplicationEdit">
                                            <DirectEvents>
                                                <Click OnEvent="OnBtnChangeClick">
                                                </Click>
                                            </DirectEvents>
                                        </ext:Button>
                                        <ext:Button runat="server" ID="extBtn_Del" Text="删除" Icon="Delete">
                                            <DirectEvents>
                                                <Click OnEvent="DelDataSetClass">
                                                </Click>
                                            </DirectEvents>
                                        </ext:Button>
                                        <ext:Button runat="server" ID="extBtn_Save" Text="保存" Icon="Accept">
                                            <DirectEvents>
                                                <Click OnEvent="OnBtnSaveClick">
                                                </Click>
                                            </DirectEvents>
                                        </ext:Button>
                                        <ext:Button runat="server" ID="extBtn_Cancel" Text="取消" Icon="Cancel">
                                            <DirectEvents>
                                                <Click OnEvent="OnBtnCancelClick">
                                                </Click>
                                            </DirectEvents>
                                        </ext:Button>
                                    </Items>
                                </ext:Toolbar>
                            </TopBar>
                        </ext:Panel>
                    </ext:LayoutRow>
                    <ext:LayoutRow>
                        <ext:Panel ID="Panel1" runat="server"  BodyStyle="padding:10px;border-width:1 0 0 0" Title="数据集分类信息"
                            Height="200">
                            <Items>
                                <ext:FitLayout ID="FitLayout3" runat="server">
                                <Items>
                                    <ext:Panel ID="pnlEdit" runat="server" Border="false">
                                        <Items>
                                            <ext:FormLayout ID="FormLayout2" runat="server">
                                            <Anchors>
                                                <ext:Anchor Horizontal="70%">
                                                    <ext:ComboBox ID="extcmbo_SUB_SYSTEM" runat="server" FieldLabel="应用子系统" LabelStyle=" text-align:right; "
                                                        StoreID="Store2" DisplayField="SYSTEM_NAME" ValueField="SUB_SYSTEM" Editable="false" ForceSelection="true" SelectedIndex="0"
                                                        TriggerAction="All" Mode="Local" TypeAhead="true">
                                                    </ext:ComboBox>
                                                </ext:Anchor>
                                                <ext:Anchor Horizontal="70%">
                                                    <ext:TextField ID="exttxtf_CLASS_NAME" runat="server" FieldLabel="分类名称" LabelStyle="text-align:right; "
                                                        AllowBlank="false" >
                                                    </ext:TextField>
                                                </ext:Anchor>
                                                <ext:Anchor Horizontal="70%">
                                                    <ext:TextArea ID="exttare_REGULATOR_MODE" runat="server" FieldLabel="类别描述" LabelStyle="text-align:right; "
                                                       >
                                                    </ext:TextArea>
                                                </ext:Anchor>
                                                <ext:Anchor Horizontal="70%">
                                                    <ext:RadioGroup ID="extrdio_MODIFY_FLAG" runat="server" FieldLabel="允许修改" LabelStyle=" text-align:right; "
                                                        ColumnsWidths="50,50">
                                                        <Items>
                                                            <ext:Radio ID="extrdio_1" runat="server" BoxLabel="是" Checked="true">
                                                            </ext:Radio>
                                                            <ext:Radio ID="extrdio_2" runat="server" BoxLabel="否">
                                                            </ext:Radio>
                                                        </Items>
                                                        <DirectEvents>
                                                            <Render OnEvent="OnShowFirstRowData">
                                                            </Render>
                                                        </DirectEvents>
                                                    </ext:RadioGroup>
                                                </ext:Anchor>
                                                </Anchors>
                                            </ext:FormLayout>
                                        </Items>
                                    </ext:Panel>
                                    </Items>
                                </ext:FitLayout>
                            </Items>
                        </ext:Panel>
                    </ext:LayoutRow>
                </Rows>
                </ext:RowLayout>
            </Items>
        </ext:ViewPort>
    </div>
    </form>
</Items>
</html>
